package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;


@Component
public class Doctor {
    private int id;
    private String name;
    private int age;
    private int sex;
    private int level_id;
    private String phone;
    private int type_id;
    private String hospital;
    private LocalDateTime updatetime;
    private LocalDateTime createtime;
    private int account_id;

    private String level_name;
    private String type_name;

    public Doctor() {
    }

    public Doctor(int id, String name, int age, int sex, int level_id, String phone, int type_id, String hospital, LocalDateTime updatetime, LocalDateTime createtime, int account_id, String level_name, String type_name) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.level_id = level_id;
        this.phone = phone;
        this.type_id = type_id;
        this.hospital = hospital;
        this.updatetime = updatetime;
        this.createtime = createtime;
        this.account_id = account_id;
        this.level_name = level_name;
        this.type_name = type_name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getLevel_id() {
        return level_id;
    }

    public void setLevel_id(int level_id) {
        this.level_id = level_id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public String getHospital() {
        return hospital;
    }

    public void setHospital(String hospital) {
        this.hospital = hospital;
    }

    public LocalDateTime getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(LocalDateTime updatetime) {
        this.updatetime = updatetime;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public int getAccount_id() {
        return account_id;
    }

    public void setAccount_id(int account_id) {
        this.account_id = account_id;
    }

    public String getLevel_name() {
        return level_name;
    }

    public void setLevel_name(String level_name) {
        this.level_name = level_name;
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", level_id=" + level_id +
                ", phone='" + phone + '\'' +
                ", type_id=" + type_id +
                ", hospital='" + hospital + '\'' +
                ", updatetime=" + updatetime +
                ", createtime=" + createtime +
                ", account_id=" + account_id +
                ", level_name='" + level_name + '\'' +
                ", type_name='" + type_name + '\'' +
                '}';
    }
}
